namespace Launcher.View

import System

class RankingViewPage:
"""Description of RankingViewPage"""

	event RankingItemChanged as RankingItemChangedHandler
	event RankingItemSizeChanged as RankingItemSizeChangedHandler

	[getter(Items)]
	_items = []
	
	def constructor(items as List):
		_items = [RankingViewItem(i) for i in items]
		
		for i as RankingViewItem in _items:
			i.RankingItemChanged += _OnRankingViewChanged
			i.RankingItemSizeChanged += _OnRankingItemSizeChanged
			
			
	private def _OnRankingViewChanged(item as RankingViewItem):
		RankingItemChanged(item)

	private def _OnRankingItemSizeChanged(item as RankingViewItem):
		RankingItemSizeChanged(item)
